package cn.itcast.crm.service;

import cn.itcast.crm.domain.Customer;

import javax.ws.rs.*;
import java.util.List;

public interface CustomerService {
    @GET
    @Path("/findAssociationFixedAreaCustomer/{fixedAreaId}")
    @Produces({"application/xml","application/json"})
    public List<Customer> findAssociationFixedAreaCustomer(@PathParam("fixedAreaId") String fixedAreaId );

    @GET
    @Path("/findNoAssociationFixedAreaCustomer")
    @Produces({"application/xml","application/json"})
    public List<Customer> findNoAssociationFixedAreaCustomer();

    @PUT
    @Path("/associationCustomerToFixedArea")
    public void associationCustomerToFixedArea(@QueryParam("customerIdStr") String customerIdStr,
                                               @QueryParam("fixedAreaId") String fixedAreaId);

}
